﻿using System;
using System.ComponentModel.DataAnnotations;

namespace VisionCloud.Domain.DtoModel.Applet.RequestDto
{
    public class DeviceLocationDto
    {
        /// <summary>
        /// 设备Id
        /// </summary>
        [Required]
        public Guid DeviceId { get; set; }

        /// <summary>
        /// 设备编号
        /// </summary>
        [Required]
        public string DeviceNumber { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        [Required]
        public double Longitude { get; set; }

        /// <summary>
        /// 纬度
        /// </summary>
        [Required]
        public double Latitude { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [Required]
        public AddressInfo AddressInfo { get; set; }
    }

    public class AddressInfo
    {
        public string Address { get; set; }

        public string Province { get; set; }

        public string City { get; set; }

        public string District { get; set; }

        public string Township { get; set; }
    }
}